import $api from './server';

// 添加类型
export const  addType = async (data)=>{
    let res = await $api.post('/roomType/add',data)
    return res.data;
}

// 查询
export const getAllType = async (data)=>{
    let res = await $api.post('/roomType/getAll',data)
    return res.data;
}

// 删除

export const delType = async (data)=>{
    let res = await $api.post('/roomType/del',data)
    return res.data;
}

// 修改

export const editType = async (data)=>{
    let res = await $api.post('/roomType/edit',data)
    return res.data;
}
